package com.sky.service;

import com.sky.dto.OrdersDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

import java.util.List;

public interface OrderService {


    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;


    void paySuccess(String outTradeNo);


    void confirm(OrdersDTO ordersDTO);

    void rejection(OrdersDTO ordersDTO);

    void cancel(OrdersDTO ordersDTO);

    OrderStatisticsVO statistics();

    void delivery(Long id);

    void complete(Long id);

    OrderVO detail(Long id);

    List<OrderVO> getByUserId();

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    PageResult history(int page,int pageSize,Integer status);

    void repetition(Long id);

    OrderVO orderDetail(Long id);

    void delete(Long id);

    void reminder(Long id);
}
